<?php
if(!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
global $_G;
$sql = 'SELECT * FROM '.DB::table('plugin_weixin')." WHERE uid ='".$_G['uid']."'";
$rs = DB::fetch_first($sql);
$binded = empty($rs) ? 0 : 1;
$wxlogin = $_G['cache']['plugin']['acan_weixin']['login'];
if($rs){
	$profile = json_decode($rs['profile']);
}
?>